home *** CD-ROM | disk | FTP | other *** search
- # On Ramp Technologies Trumpet Winsock Script
-
- # login.cmd
- #
- #initialize modem
- # (for zoom and USR modems particularly, if atz does not
- # properly reset the modem, replace atz with at&f1).
- #
- output atz\13
- input 10 OK\n
- #
- # set modem to indicate DCD
- # (if at&f does not properly initialize your modem, refer
- # to your modem's manual and replace at&f with a modem
- #string specific to your modem.)
- #
- output at&f\13
- input 10 OK\n
- #
- # send On-Ramp local access number
- # note: 5551234 just and example; replace it with an
- # appropriate number from a current
- # "Quick Reference Guide".
- #
- # note: call waiting block prefix: *70, (e.g. *70,5551234)
- #
- output atdt5551234\13
- input 30 CONNECT
- #
- # wait until it is safe to send date because some modems hang # up if
- # transmit during the connection phase.
- #
- wait 30 dcd
- #
- # now prod the server
- #
- output \13
- #
- # wait for the username prompt
- #
- input 30 username:
- #
- # send your personal On-Ramp username
- # (replace joesmith with your On-Ramp username)
- #
- output joesmith\13
- #
- # wait for password prompt
- #
- input 30 password:
- #
- # send your personal On-Ramp password
- # (replace mysecret with your On-Ramp password)
- #
- output mysecret\13
- #
- # now we are logged in
- # be sure to note the space before the colon:
- #
- input 30 :
- #
- # jump into slip mode
- #
- output slip\13
- #
- # wait for address string
- #
- input 30 Your address is
- #
- # parse address
- #
- address 30
- input 30 \n
- #
- # we are now connected and in slip mode
- #
- display \n
- display Connected. Your IP address is \i. \n
- #
- # now we are finished!